import tkinter as tk
window = tk.Tk()
window.config(bg='#FFFFE0')
window.title('CBM记事本')
window.geometry("400x600")
window.resizable(False, False)
window.mainloop()


frame = tk.Frame(window)
frame.pack(fill=tk.BOTH, expand=True)
note = tk.Listbox(frame)
note.pack(side=tk.LEFT, fill=tk.BOTH, expand=True)
scrollbar_y = tk.Scrollbar(frame, command=note.yview)
scrollbar_y.pack(side=tk.RIGHT, fill=tk.Y)
note.config(yscrollcommand=scrollbar_y.set)
scrollbar_x = tk.Scrollbar(frame, orient=tk.HORIZONTAL, command=note.xview)
scrollbar_x.pack(side=tk.BOTTOM, fill=tk.X)
note.config(xscrollcommand=scrollbar_x.set)



priority_stuff = tk.StringVar()
priority_stuff.set('最首要任务/High')


priority_menu = tk.OptionMenu(window, priority_stuff, "最首要任务/High", "首要任务/Medium", "次要任务/Low")
priority_menu.pack()